package zr.dao;

public enum QiZiName{	
	
	工兵,排长,连长,营长,团长,旅长,师长,军长,司令,地雷,炸弹,军旗;
	
	private final int[] count={3,3,3,2,2,2,2,1,1,3,2,1};
	
	public static QiZiName moveables[]={工兵,排长,连长,营长,团长,旅长,师长,军长,司令,炸弹};
	
	public int getCount(){
		return count[this.ordinal()];
	}

	public static QiZiName instance(String name) {
		for(QiZiName qzn:QiZiName.values()){
			if(qzn.toString().equals(name))
					return qzn;
		}
		return null;
	}
}
